<template>
  <p>MyMixin</p>
</template>

<script>
export default {
  data() {
    return {
      city: "杭州"
    };
  },
  methods: {
    showName() {
      console.log(this.name);
    }
  },
  mounted() {
    console.log("MyMixin mounted");
  },
  destroyed() {
    console.log("MyMixin destroyed");
  }
};
</script>